package com.itheima.day05.consumer;


import com.itheima.day05.config.RabbitMQLogConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class InfoLogConsumer {

    @RabbitListener(queues = RabbitMQLogConfig.INFO_QUEUE_NAME)
    public void handleInfoLog(String message) {
        System.out.println("Received INFO log: " + message);
    }
}